[
    async function( kuo,Context,context){
        var $THIS = this;
        Context.Cache = false;
        let $DATA = Object.assign({},this.$DATA);
        let $Security = await Mem.Get('session/'+kuo.sessionid);
        if(!$Security ){
            $Security={
                uid:0,
                code:0,
                tuid:0
            };
        }
        $DATA.msg = CDNHOST;
        let $UID =$Security.uid;
        $DATA.code  = -1;
        if($UID > 0){
            
            let $user = await Uid($UID);
            if($user){
                $DATA.code  = 1;
                $user['avatar'] = pichttp($user['avatar']==""?"Tpl/login/avatar/"+($user['id']%10)+".png":$user['avatar']);
                $DATA.data = $user; 
                return  json_encode($DATA);
            }else{
                $DATA.code  = -1;
                await Mem.Del('session/'+kuo.sessionid);
            }
        }
        
        return  json_encode($DATA);
    }
]